﻿#ifndef ICONBUTTON_H
#define ICONBUTTON_H

#include "components/FWidgets/FButtons/FToolButton.h"

class IconButton : public FToolButton
{
    Q_OBJECT
public:
    enum Size {
        Small, Normal, Large
    };
    explicit IconButton(QWidget *parent = nullptr, const QIcon& icon=QIcon(), const QString& text="", Size size=Normal);
    void setOnIcon(const QIcon& icon);
    void setOffIcon(const QIcon& icon);
    void setIcon(const QIcon& icon);
    void setIconStatus(bool on);
    bool isOn() const;

    void setColorIcon(const QColor& color);
    QColor iconColor() const;

signals:

private:
    QIcon m_on, m_off;
    bool m_isOn;
    QColor m_iconColor;
};

#endif // ICONBUTTON_H
